package com.dongdongshop.serviceImpl;

import com.dongdongshop.mapper.TbProvincesMapper;
import com.dongdongshop.pojo.TbProvinces;
import com.dongdongshop.service.TbProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class TbProvincesServiceImpl implements TbProvincesService {
    @Autowired
    private TbProvincesMapper tbProvincesMapper;
    @Override
    public List<TbProvinces> selectProvinces() {
        List<TbProvinces> tbProvinces = tbProvincesMapper.selectByExample(null);
        return tbProvinces;
    }

    @Override
    public TbProvinces selectGetName(String provinceId) {
         TbProvinces provinces = tbProvincesMapper.selectGetName(provinceId);
        return provinces;
    }
}
